# -*- coding: UTF-8 -*-
# filename: yangsy.py
# author by: Face

dict1 = {"pageSize": "30", "product": "EFund", "DISCOUNT": "", "SortColumn": "SYL_Y", "MobileKey": "4a69e1fc7d583fe671ad69c95ae6c2b7||945235770232353", "BUY": "true", "appType": "ttjj", "LevelOne": "", "version": "6.3.2", "onFundCache": "3", "Sort": "desc", "pageIndex": "1", "FundType": "6", "CompanyId": "", "plat": "Android", "TOPICAL": "", "ENDNAV": "", "LevelTwo": "", "ISABNORMAL": "true", "DataConstraintType": "0", "gToken": "ceaf-236567466abfda4e2864831ea5645231", "ESTABDATE": "6", "deviceid": "4a69e1fc7d583fe671ad69c95ae6c2b7||945235770232353"}

dict2 = {"version": "6.3.2", "pageSize": "30", "product": "EFund", "DISCOUNT": "", "CLTYPE": "", "SortColumn": "SYL_Y", "MobileKey": "4a69e1fc7d583fe671ad69c95ae6c2b7||945235770232353", "BUY": "true", "appType": "ttjj", "RISKLEVEL": "", "igggggnoreburst": "true", "RLEVEL_SZ": "5,4,3", "Sort": "desc", "pageIndex": "1", "FundType": "0", "CompanyId": "", "plat": "Android", "TOPICAL": "", "ENDNAV": "", "ISABNORMAL": "true", "DataConstraintType": "0", "gToken": "ceaf-236567466abfda4e2864831ea5645231", "ESTABDATE": "6", "deviceid": "4a69e1fc7d583fe671ad69c95ae6c2b7||945235770232353"}
# 两字典的不同值：
differ = set(dict1.items() ^ dict2.items())
# dict1中有而dict2中没有的键值：
a = set(dict1.items() - dict2.items())
# dict2中有而dict1中没有的键值：
b = set(dict2.items()-dict1.items())
print('dict1中有而dict2中没有的键值:',a)
print('dict2中有而dict1中没有的键值:',b)
print('两字典所有不同的键值：',differ)